﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.FileServerData;

[Index("cu_account", Name = "cu_account")]
[Index("cu_guid", Name = "cu_guid")]
[Index("cu_pwd", Name = "cu_pwd")]
[Index("cu_status", Name = "cu_status")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class bs_client_user
{
    [Key]
    public long cu_id { get; set; }

    [StringLength(50)]
    public string cu_code { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? cu_mod_time { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? cu_add_time { get; set; }

    /// <summary>
    /// 0正常，1禁用
    /// </summary>
    public int? cu_status { get; set; }

    /// <summary>
    /// 关联client
    /// </summary>
    [StringLength(255)]
    public string cu_c_guid { get; set; }

    [StringLength(50)]
    public string cu_account { get; set; }

    [StringLength(50)]
    public string cu_name { get; set; }

    [StringLength(50)]
    public string cu_pwd { get; set; }

    public string cu_guid { get; set; }

    /// <summary>
    /// super超级,general普通
    /// </summary>
    [StringLength(255)]
    public string cu_power_type { get; set; }

    [StringLength(255)]
    public string cu_mobile { get; set; }
}
